# 进入指定url页面
def getPageByUrl(driver, url):
    wins_list = driver.window_handles  #当前所有窗口的句柄
    # print("wins_list:" + wins_list.toString())
    for lUrl in wins_list:
      print("lUrl:" + lUrl)
      driver.switch_to.window(wins_list[-1])
      if(lUrl == url):
         driver.switch_to.window(url)
         return driver

